package com.xiaozhen.common.core.domain.cmdb;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.xiaozhen.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;

/**
 * @author zhenweisheng
 * @date 2020/9/2 15:55
 * @description:
 */
@Data
@TableName("cmdb_example")
@ApiModel(description = "模型实例")
public class CmdbExample extends BaseEntity {

    @TableId
    @ApiModelProperty(value = "实例ID")
    private Long exampleId;

    @ApiModelProperty(value = "设备分组的id")
    private Long modelId;

    @ApiModelProperty(value = "实例名称")
    private String exampleName;

    @TableLogic
    @ApiModelProperty(value = "删除标识（0-正常,1-删除）")
    private Integer delFlag;

    @ApiModelProperty(value = "实例值列表")
    @TableField(exist = false)
    List<CmdbExampleValue> exampleValues;
}
